/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.googlecode.datawander;

import static org.junit.Assert.*;

/**
 *
 * @author Marcin Stachniuk
 */
public class AssertOracleAndDb4o {

    public static void assertNumberOfRecordsAndObjects(String className) throws AssertionError, Exception {
        int numberOfRows = CreateOracleDatabase.getNumberOfRecordsForTable(className);
        int numberOfObjcets = Db4oUtilTestPckg.getNumberOfObjectsForClass(className);
        assertEquals("Bad number of objects for "+className + " in relational DB: " +
                numberOfRows+ " in db4o: "+numberOfObjcets, numberOfRows, numberOfObjcets);
        System.out.println("OK Number of records and objects for " + className +
                " records "+ numberOfRows + " objects: " + numberOfObjcets);
    }
}
